Hello,
"C:\Program Files (x86)\ibm\Rational\DOORS\9.5\bin\doors.exe" -d 36678@host -b "D:\data.dxl" -u sds -P 234 -l "D:\errors.log" -W -cli "string t=\"/ProjectA/2\""
Module m muthurani - Mon Sep 01 07:45:41 EDT 2014 |
Re: executing DXL Script via batch using parameters You're immediate problem is that your manual program has not got variable "t" defined. You COULD put a similar "-cli" onto your doors desktop icon; but you won't know which module you want opened. Most scripts deal with the "current" module or possibly the currently selected module "string Name = getBaseSelection_()". I think you need to rethink the on-demand portion. I'm thinking though you could use your envionment variables to do this. Your batch line:
Your code:
-Louie |
Re: executing DXL Script via batch using parameters I normally use something like: noError(); string sValue = eval_ "t"; string errMsg = lastError() if (!null errMsg) print "Symbol t not defined on global scope!"; to check for the existence of a command line parameter. If no parameter has been passed, then the script needs to handle this situation somehow. Maybe this helps, regards, Mathias |
Re: executing DXL Script via batch using parameters Hi You can use an environment variable. In the batch-File ...
SET sModuleName="ProjectA/2"
And inside of the dxl-Script string sModuleName= getenv("sModuleName");
Best regards
|